
	
            $("#widget-list").children(".widget").draggable({
                //connectToSortable: "div.widgets-sortables",
                //handle: "> .widget-top > .widget-title",
                //distance: 2,
                helper: "clone",
                zIndex: 9999,
                //containment: "#wpwrap",
                //refreshPositions: !0,
                //start: function(b, c) {    },
                //stop: function() {             }
            });
	
	
	

	//排序
	$( ".widgets-sortables" ).sortable({
                placeholder: "widget-placeholder",
                items: "> .widget",
				cursor: "move",
				 axis: "y",
                //handle: "> .widget-top > .widget-title",
                //distance: 2,
                //containment: "#wpwrap",
                //tolerance: "pointer",
                //refreshPositions: !0,
				start:function(e,ui){ ui.helper.append('start');},
				stop: function(e,ui){ ui.item.append('stop');},
     			activate: function() {
                    $(this).parent().addClass("widget-hover");
                },
                deactivate: function() {
                    $(this).parent().removeClass("widget-hover");
                },
                receive: function(b, c) {
                        $(this).remove();
                },
				  sort: function() {
					  //移动中...console.log(this);
					// 获取由 droppable 与 sortable 交互而加入的条目
					// 使用 connectWithSortable 可以解决这个问题，但不允许您自定义 active/hoverClass 选项
			
				  }
    });
	//.sortable("option", "connectWith", "div.widgets-sortables");




});